#!/bin/bash
#

HOST=127.0.0.1
USER=root
PASS=123456
DB_NAME=psm70
DB_DIR=./PSM70.sql

create_db_sql="create database IF NOT EXISTS ${DB_NAME}"
source_sql="source ${DB_DIR}"

mysql -h${HOST} -u${USER} -p${PASS} -e "${create_db_sql}"
mysql -h${HOST} -u${USER} -p${PASS} ${DB_NAME} -e "${source_sql}"


